
        <div class="subnav">
            <ul class="crumbs">
                <li>我的位置：</li>
                <li><a href="{$site_url}">{$site_name} </a> </li>
                <li><a href="{$Categorys[$catid]['url']}">&nbsp; &gt; {$Categorys[$catid]['catname']} </a></li>
              
                <div class="clear"></div>
            </ul>
 
      </div>
<div class="main">
    <div class="left">

      <!-- 二级导航 -->
        <div class="subnav">
           
        
            <table class="classify">
                <!--<tr>
                    <th>所在城市：</th>
                    <td><ul>
                        <li><a href="{:unsetParam('city',$url_s)}" <?php if(empty($_GET['city'])){ ?> class="whole" <?php } ?>>不限</a></li>
                       <volist name="bcity_hot"  id="r" >
                         <li ><a <?php if($_GET['city']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('city',$url_s)}&city={$r['id']}">{$r['name']}</a></li>
                       </volist>
                       <?php if(is_numeric($_GET['city']) == false && !empty($_GET['city'])){?>
                         <li class="{}" ><a  class="whole"  href="{:unsetParam('city',$url_s)}&city={$_GET['city']}">{$_GET['city']}</a></li>                    <?php }?>
                      
                         <li><a id="btn_residency" class="whole"  style="color:#F90;" href="javascript:residencySelect()">【其他城市】</a>
                       </li>
                     <div class="clear"></div>
                    </ul></td>
                </tr>-->
                <tr> 
                    <th>擅长空间：</th>
                    <td><ul>
                        <li><a href="{:unsetParam('itemType',$url_s)}" <?php if(empty($_GET['itemType'])){ ?> class="whole" <?php } ?>>主题餐厅</a></li>
                        <YP:list name="Label" where="genre=17 and id!=75" id="r" order="listorder asc" limit="50">
                    <li><a <?php if($_GET['itemType']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('itemType',$url_s)}&itemType={$r['id']}">{$r['title']}</a></li>
                </YP:list>
                        <div class="clear"></div>
                    </ul></td>
                </tr> 
                <!--<tr> 
                    <th>设计收费：</th>
                    <td><ul style="border-bottom:none">
                        <li ><a href="{:unsetParam('charge',$url_s)}" <?php if(empty($_GET['charge'])){ ?> class="whole" <?php } ?>>不限</a></li>
                         <YP:list name="Type" where="parentid=34" order="listorder asc" id="r" limit="50">
                    <li><a <?php if($_GET['charge']==$r['typeid']){ ?> class="whole" <?php } ?> href="{:unsetParam('charge',$url_s)}&charge={$r['typeid']}">{$r['name']}/㎡</a></li>
                </YP:list>
                        <div class="clear"></div>
                    </ul></td>
                </tr>-->
            </table>
        
        </div>
<style>
.yuan{
behavior: url(../Public/PIE.htc);
}
</style>


        <!-- 内容 -->
        <div class="designer">
            <div class="hd">

                <!-- 下面是前/后按钮代码，如果不需要删除即可 -->
                <span class="arrow"><a class="next"></a><a class="prev"></a></span>
                 <script type="text/javascript">jQuery(".designer").slide({trigger:"click"});</script>

                <ul><li <?php if(empty($_GET['order'])){ ?> class="on" <?php }?>><a href="{:unsetParam('order',$url_s)}"> 默认排序 </a></li>
                    <li <?php if($_GET['order']=='yuyue_num'){ ?> class="on" <?php } ?> ><a href="{:unsetParam('order',$url_s)}&order=yuyue_num">预约数 &nbsp; <img src="../Public/images/down.png" alt="" /></a></li>
                    <li <?php if($_GET['order']=='com_num'){ ?> class="on" <?php } ?> ><a href="{:unsetParam('order',$url_s)}&order=com_num">评论数 &nbsp; <img src="../Public/images/down.png" alt="" /></a></li></ul>
            </div>
           
           
            <div class="bd">
            
            <volist name="list" id="v" key="k">
                <ul class="dd">
                    <li class="dp"> 
                        <div class="finds">
                            <div class="finds_user" >
                               <a href="index.php?m=User&a=index&id={$v.id}"> <img width="100" height="100" class="yuan" src="{$v.avatar}" alt="点击进入设计师主页" /></a>
                                <a class="a" href="index.php?g=User&m=Guestbookadd&a=add&designid={$v.id}">找TA设计</a>
                            </div>
                            <?php $itemType=explode(",",$v['itemType']); $c="0" ?>
                            <h4>{$v['username']}</h4>
                            <p>所在地区: {$v['province']|jgarea=###} {$v['city']|jgarea=###}</p>
                            <p>擅长空间： <YP:list name="Label" where="genre=17" key="kk" id="r" limit="50">
                                           {if in_array($r['id'],$itemType)}
                                              {if $c<3}
                                                 {if $c!=0}|{/if}
                                                   {$r['title']}
                                               {/if}
                                               {if $c==3}
                                                   <a style=" color:#F90;" href="index.php?m=User&a=index&id={$v.id}">更多</a>
                                               {/if}        
                                                   <?php $c+=1;?>
                                           {/if}
                                           
                                        </YP:list>
                            <p>作品：{$v.case_num}</p>
                            <p>预约数：{$v.yuyue_num}</p>
                          <span>{$v['my_introduce']|str_cut=###,150}</span>
                        </div>
                          
                        
                        
                        <ul><?php $arr=M('Case')->field('id,thumb_list')->where("userid=".$v['id']." and status=1")->limit('4')->select();
                          foreach($arr as $k=>$v){
                            ?>
                            <li><a href="/index.php?m=Case&a=show&id={$v['id']}"><img src="{$v['thumb_list']}" alt="" /></a></li>
                            <?php } ?>
                            
                        </ul>
                    <div class="clear"></div>             
                    </li> 
                 </ul>
             </volist>
                
                



            </div>
        </div>
       

        <div class="paging" style=" height:30px; text-align:center">
            <ul >
           {$pages}
           </ul>
        </div>
    </div>
<style>
 .right option{ width:100%;  height:100%} 
   
</style>
    <script type="text/javascript" src="__PUBLIC__/Js/jgsat.js"></script>
    <div class="right">
        <div class="release">
            <h3>提交需求</h3>
            <p>快速发布需求 找到专属设计</p>
            <form name="form1" id="myform1" action="{:U('User/Guestbook/insert')}"  method="post"> 
            <input class="chengh" style="height:30px;" name="title" id="user_tc" placeholder="您的称呼" value=""/>
            
            <input class="chengh " style="height:30px;" name="telephone" id="telephone_tc"  placeholder="手机号码" value=""/>
             <select  style="padding:8px 0;" name="bprovince" id="province" onchange="area_change(this.value, 1,'province','city','area');" class="selt mr5" >
                         <option value="0">省份</option>
             </select>
             <select style="padding:8px 0;" name="bcity" onchange="area_change(this.value, 2,'province','city','area');" id="city" class="selt mr5" >
                         <option value="0">城市</option>
             </select>
                   <script>area_change(0, 0,'province','city','area',0,0,0);</script>
                    <input name="modulename" value="Guestbook" type="hidden">  
                     <input  name="mobileyzm" class="verify"  type="hidden" value=" "/>
            <input name="myform1" class="submit"  type="button" onclick="bbb('myform1')" value="立即提交"/>

        </div>
        <ul class="bigName">
        <h6> 推荐设计师</h6>
          <volist name="list_d" id="r"> 
             <li>
                <a href="index.php?m=User&a=index&id={$r.id}">
                 <img src="{$r.avatar}" />
                 <p>设计师：{$r.username}</p>
                 <p>所在地： {$r['province']|jgarea=###} {$r['city']|jgarea=###}</p>
                 <p>预约数：{$r.yuyue_num}</p>
                 <p>擅长空间：
                           <?php $itemType1=explode(",",$r['itemType']); $d=0; ?>
                            <YP:list name="Label" where="genre=17" id="v" limit="50">
                             
                             {if (in_array($v['id'],$itemType1))}
                                      {if $d < 2}
                                          {if ($d!=0)}|{/if}
                                             {$v['title']}
                                          {/if} 
                                       {if $d==2}
                                                   <span style="color:#F90;" > 更多</span>
                                               {/if}      
                                      <?php $d+=1;?>
                              {/if}
                            </YP:list></p>
                 
                </a>
            </li>
           </volist>
        </ul>
    </div>
    <div class="clear"></div>
</div>


<!--选择城市弹出层-->
<div id="maskLayer" style="display:none">
<iframe id="maskLayer_iframe" frameBorder=0 scrolling=no style="filter:alpha(opacity=50)"></iframe>
<div id="alphadiv" style="filter:alpha(opacity=50);-moz-opacity:0.5;opacity:0.5"></div>
	<div id="drag">
		<h3 id="drag_h"></h3>
		<div id="drag_con"></div><!-- drag_con end -->
	</div>
</div>
 </div> 
 <div id="sublist" style="display:none"></div>  
<script type="text/javascript">
// 是否在数组内
function in_array(needle, haystack) {
	if(typeof needle == 'string' || typeof needle == 'number') {
		for(var i in haystack) {
			if(haystack[i] == needle) {
					return true;
			}
		}
	}
	return false;
}
</script>
                                                                                                                                                                                                                                                                                                